package com.hjcloud.feignmodulemysql.hystric;

import com.hjcloud.feignmodulemysql.service.GatewayInfoService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Auther: IceZhang
 * @Date: 2018/8/3 15:07
 * @Description:
 */
@Component
public class GatewayInfoServiceHystric implements GatewayInfoService {

    @Value("${server.port}")
    String port;
    @Value("${spring.application.name}")
    String host;

    @Override
    public String gateWayInfoPage() {
        return host+":"+port+"服务故障";
    }
}